import AdminLayout from "@/layouts/admin-layout";

const name = "admin-oj";
const meta = { auth: true };

export default {
  path: "/admin/oj",
  name: `${name}`,
  redirect: { name: `${name}-problem` },
  meta: { ...meta },
  component: AdminLayout,
  children: [
    {
      path: "problem",
      name: `${name}-problem`,
      meta: {
        title: "题库管理"
      },
      component: () => import("@/pages/admin/oj/problem")
    }
  ]
};
